package com.zhuiyun.project.api.music.service;

import com.zhuiyun.project.api.music.entity.SysMusic;
import com.zhuiyun.project.api.music.model.MusicModel;
import com.zhuiyun.project.common.errorCode.CommonException;
import com.zhuiyun.project.common.response.CommonResult;
import com.zhuiyun.project.utils.pageUtil.PageRequest;
import org.springframework.web.multipart.MultipartFile;

/**
 * @ClassName MusicService
 * @Description TODO
 * @Author XMY
 * @Date 2023/12/6 15:42
 **/
public interface MusicService {
    /**
     * @Author XMY
     * @Description 音频上传
     * @Date 2023/12/6 19:00
     * @Return
     * @param file
     */
    CommonResult audioUpload(MultipartFile file, String username);
    /**
     * @Author 音频列表分页查询
     * @Description
     * @Date 2023/12/6 18:58
     * @Return
     * @param sysMusic
     * @param pageRequest
     */
    CommonResult getMusicList(SysMusic sysMusic, PageRequest pageRequest);

    /**
     * @Author XMY
     * @Description 修改音频信息
     * @Date 2023/12/7 11:27
     * @Return
     * @param musicModel
     */
    CommonResult updateMusic(MusicModel musicModel) throws CommonException ;
    /**
     * @Author XMY
     * @Description 删除音频信息
     * @Date 2023/12/6 19:43
     * @Return
     * @param picId
     */
    CommonResult delMusicByIds(Integer[] picId)throws CommonException;
}
